﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeBehind="CadastrarAtendimento.aspx.cs" Inherits="Atendex.Web.CadastrarAtendimento" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Label ID="lblTitulo" runat="server" 
        Text="<h3>Cadastro de Atendimentos</h3>"></asp:Label><br />
        
        <asp:Label ID="lblMessage" runat="server" ForeColor="Red" Visible="false"></asp:Label><br />
        
        <asp:Panel ID="pnlCadastro" runat="server">
    <table>
        <tr>
            <td style="width: 10px"></td>
            <td>
            
                <asp:Label ID="lblRequerente" runat="server" Text="Requerente:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtNomeRequerente" runat="server" Width="300"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="width:10px "></td>
            <td>
                <asp:Label ID="lblTipoRequerente" runat="server" Text="Tipo:"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="ddlTipoRequerente" runat="server" Width="150">
                    <asp:ListItem>Aluno</asp:ListItem>
                    <asp:ListItem>Professor</asp:ListItem>
                    <asp:ListItem>Coordenador</asp:ListItem>
                    <asp:ListItem>Funcionário</asp:ListItem>
                    <asp:ListItem>Outros</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td style="width: 10px"></td>
            <td>
                <asp:Label ID="lblTelefone" runat="server" Text="Telefone:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtTelefone" runat="server" Width="150"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="width: 10px"></td>
            <td>
                <asp:Label ID="lblEmail" runat="server" Text="E-Mail:"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtEmail" runat="server" Width="300"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="width: 10px"></td>
            <td>
                <asp:Label ID="lblMeioAtendimento" runat="server" Text="Meio para atendimento:"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="ddlMeioAtendimento" runat="server" Width="150">
                    <asp:ListItem>Telefone</asp:ListItem>
                    <asp:ListItem>E-mail</asp:ListItem>
                    <asp:ListItem>WebSite</asp:ListItem>
                    <asp:ListItem>Pessoalmente</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td style="width: 10px"></td>
            <td>
                <asp:Label ID="lblCurso" runat="server" Text="Curso de Interesse:"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="ddlCurso" runat="server" Width="300">
                    <asp:ListItem>--Selecione--</asp:ListItem>
                    <asp:ListItem>Gerenciamento de Projetos</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td style="width:10px "></td>
            <td>
                <asp:Label ID="lblPrazo" runat="server" Text="Prazo para resolução:"></asp:Label>
            </td>
            <td>
                <asp:Calendar ID="calPrazo" runat="server"></asp:Calendar>
            </td>
        </tr>
    </table>
    <br /><br />
    <table>
        <tr>
            <td style="width: 10px"></td>
            <td>
                
            </td>
        </tr>
        <tr>
            <td style="width: 10px"></td>
            <td>
                <asp:GridView ID="grvSolicitacoes" runat="server" AutoGenerateColumns="False" 
                    CellPadding="4" ForeColor="#333333" GridLines="None" 
                    onrowdeleting="grvSolicitacoes_RowDeleting" 
                    onrowediting="grvSolicitacoes_RowEditing">
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <Columns>
                        <asp:BoundField DataField="Tipo" HeaderText="Tipo" >
                            <ControlStyle Width="300px" />
                            <ItemStyle Width="300px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Prazo" HeaderText="Prazo" >
                            <ControlStyle Width="150px" />
                            <ItemStyle Width="150px" />
                        </asp:BoundField>
                        <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
                    </Columns>
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <EditRowStyle BackColor="#999999" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                </asp:GridView>
                <br />
            </td>
        </tr>
        <tr>
            <td style="width: 10px"></td>
            <td>
                <asp:Button ID="btnSubmit" runat="server" Text="Submeter" 
                    onclick="btnSubmit_Click" />
            </td>
        </tr>
    </table>
    </asp:Panel>
</asp:Content>
